import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App'
import router from './router'
import { initNormalizeStyles } from "shared/normalize";
import elementPlus from "shared/element-plus";
import { initPubStyles } from 'shared/pub';

class Main {
    constructor() {
        const app = createApp(App)

        app.use(createPinia())
            .use(router)
            .mount('#app')

        // TODO 需要解决的地方
        console.log("import.meta.env: ", import.meta.env)
        window.__APP_CONFIG__ = import.meta.env;

        elementPlus.init(app)

        initNormalizeStyles()
        initPubStyles()
    }
}

new Main


